package util

import (
	"fmt"
	"math/rand"
	"time"
)

func Rand(min, max int) int {
	v := int(rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(int32(max)))
	for v > max || v < min {
		fmt.Println(11, v)
		v = int(rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(int32(max)))
	}
	return v
}
